package az.mecid.rssreader.client;

import az.mecid.rssreader.client.presenter.ReaderPresenter;
import az.mecid.rssreader.client.services.SubscribeService;
import az.mecid.rssreader.client.services.SubscribeServiceAsync;
import az.mecid.rssreader.client.view.ReaderView;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.user.client.ui.RootLayoutPanel;
import com.google.gwt.user.client.ui.RootPanel;


/**
 * Created by IntelliJ IDEA.
 * User: mega
 * Date: 22.02.2010
 * Time: 16:18:44
 * To change this template use File | Settings | File Templates.
 */
public class Reader implements EntryPoint {

    public void onModuleLoad() {
        SubscribeServiceAsync async = SubscribeService.App.getInstance();
        HandlerManager eventBus = new HandlerManager(null);

        ReaderPresenter presenter = new ReaderPresenter(new ReaderView(),eventBus,async);
        presenter.go(RootLayoutPanel.get());

    }

}